<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'updateMovie.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
	
	<style type="text/css">
		*{margin:0;padding:0;}
		li{ list-style-type:none;}
		a:link{color:#5fb701;}
		a:visited{color:#5fb701;}
		a:hover{color:white;}
		a:active{color:black;}
		span{ border-right:#898989 solid 1px;display:block;float:right;height:14px;margin-top:5px;
		margin-right:10px;margin-left:10px;}
		#footer{width: 847px;margin:0 auto;overflow:hidden;}
		#b1{width:400px;margin:0 auto;height:24px;line-height:24px;text-align:center;margin-top:30px;}
		#b1 ul{overflow:hidden;}
		#b1 li{float:left;}
		#b2{width:530px;margin:0 auto;font-size:12px;margin-top:15px;}
		#b3{width:210px;overflow:hidden;margin:0 auto;padding-top:15px;margin-bottom:30px; }
		#b3 img{float:left;padding-right:10px;}
	</style>
	
  </head>
  
  <body style="background-color:#3f444e; color: white;width: 847px;margin: 0 auto;">
  	<div id="header">
	
	    <div id="nav" style="position: relative;margin-top: 20px;">
	    	<div id="welcome" style="position: absolute;top: 10px;">欢迎使用电影天堂管理系统！</div>
	        <div id="a_b01"><img src="img/imgs/login_04.gif"></img></div>
	    </div>
	</div>
  	<div style="width: 250px;margin: 0 auto;margin-top: 50px;">
  		<form action="movie.do?action=updateMovie&id=${movie.id}" method="post" name="formMovie">
			<table>
				<tr>
					<td>电影名</td>
					<td><input type="text" name="moviename" id="moviename" value="${movie.moviename}"/></td>
				</tr>
				<tr>
					<td>导演</td>
					<td><input type="text" name="dictor" id="dictor" value="${movie.dictor}"/></td>
				<tr/>
				<tr>
					<td>演员</td>
					<td><input type="text" name="actor" id="actor" value="${movie.actor}"/></td>
				<tr/>
				<tr>
					<td>时长</td>
					<td><input type="text" name="time" id="time" value="${movie.time}"/></td>
				<tr/>
				<tr>
					<td>图片地址</td>
					<td><input type="text" name="imgurl" id="imgurl" value="${movie.imgurl}"/></td>
				<tr/>
				<tr>
					<td>播放地址</td>
					<td><input type="text" name="playurl" id="playurl" value="${movie.playurl}"/></td>
				<tr/>
				<tr>
					<td>电影类型</td>
					<td><input type="text" name="type" id="type" value="${movie.type}"/></td>
				<tr/>
				<tr>
					<td>电影地区</td>
					<td><input type="text" name="area" id="area" value="${movie.area}"/></td>
				<tr/>
				<tr>
					<td>电影评分</td>
					<td><input type="text" name="score" id="score" value="${movie.score}"/></td>
				<tr/>
				<tr>
					<td><input type="submit" name="submit" id="submit" value="提交"/></td>
					<td><input type="reset" name="reset" id="reset" value="重置"/></td>
				</tr>
				<tr>
					<td style="color: green;">${sucess}</td>
					<td style="color: red;">${file }</td>
				</tr>
			</table>
		</form>
	</div>
	
	<div id="footer">
		<div id="b1">
            	<ul>
                	<li><a href="movie.do">首页</a><span></span></li>
	                <li><a href="#">客户服务</a><span></span></li>
	                <li><a href="#">品牌合作</a><span></span></li>
	                <li><a href="#">网站联盟</a><span></span></li>
	                <li><a href="#">投诉与建议</a></li>
                </ul>
            </div>
		<div id="b2">
            	<p>copyright&copy;2011 vijia.com All Rights Reserved京ICP备08800757号 京公网安备110105005426</p>
            </div>
            <div id="b3">
            	<ul>
                    <li><img src="img/imgs/btm_logo_1.gif" /></li>
                    <li><img src="img/imgs/btm_logo_2.gif" /></li>
            	</ul>
            </div>
	</div>
  </body>
</html>
